resize Content Aware
Resize all blocks to the given size. The content of the blocks is automatically adjusted to fit the new dimensions.
Performs an internal update to lay out pending changes, also with the setting features/implicitUpdatesEnabled off. A block with no layout on a page that single page mode hides returns an error.
A page with page slices scales every page slice by one factor. Full-page blocks still fill the spread. Other content uses one scale factor. It stays relative to the center of its page slice. A page slice returns an error, because its page sets its size. A spread with a zero width or height returns an error. Required scope: "layer/resize"
Parameters
blocks
The blocks to resize.
width
The new width of the blocks.
height
The new height of the blocks.